package com.xzwei.springboot.docker.helloworld;

import org.apache.commons.collections.CollectionUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@SpringBootApplication
public class HelloworldApplication {

    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
        List<String> list1 = null;
        if (CollectionUtils.isEmpty(list1)) {
            list1=new ArrayList<>();
        }
        List<String> list2 = Arrays.asList("1", "2", "3");

        if (CollectionUtils.isEmpty(list2)) {
            list2=new ArrayList<>();
        }

        list1 = (List<String>) CollectionUtils.union(list1, list2);

        if (CollectionUtils.isEmpty(list1)) {
            list1=new ArrayList<>();
        }
        System.out.println(1);

        SpringApplication.run(HelloworldApplication.class, args);
    }

}

